<?php
	session_start();

	//restrict page access
	if(!isset($_SESSION['user']) || $_SESSION['role'] != 2)
	{
		header('Location: index.php');
		exit;
	}

	$title = "Administration Page";

	$optionalcss = '<link type="text/css" href="css/vader/jquery-ui-1.8.16.custom.css" rel="stylesheet" />	
		<script type="text/javascript" src="js/jquery-1.6.2.min.js"></script>
		<script type="text/javascript" src="js/jquery-ui-1.8.16.custom.min.js"></script>';
	
	include('header.php');

?>
	
		<!-- start content -->
		<div id="content">
		<font color='red'><?php echo $message . "<br />"; ?></font>
		<script>
  			$(document).ready(function() {
  			$("#accordion").accordion({ autoHeight: false, collapsible: true, navigation: true });
  			});
  		</script>
			<div id="accordion">
				<h3><a href="#Password">Reset Password</a></h3>
				<div><?PHP include('admin_reset_password.php') ?>
				</div>
				<h3><a href="#Users">All Users</a></h3>
				<div><?PHP include('admin_edit_users.php') ?>
				</div>
				<h3><a href="#Pending">Pending Movies</a></h3>
				<div><?PHP include('admin_pending_movies.php') ?>
				</div>
				<h3><a href="#All">All Movies</a><h3>
				<div><?PHP include('admin_delete_movies.php') ?>
				</div>
				<h3><a href="#Log">Master Log</a><h3>
				<div><?PHP include('admin_view_logs.php') ?>
				</div>
			</div>
		</div>		
				
		<!-- end content -->
<?php include('footer.php'); ?>



